package com.xuecheng.content.service;

import com.xuecheng.commons.model.dto.CourseAuditDto;
import com.xuecheng.commons.model.dto.CourseBaseDto;
import com.xuecheng.commons.model.dto.CourseDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.domain.CourseBase;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;

/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-07-16
 */
public interface CourseBaseService extends IService<CourseBase> {

        ResponseResult courseList(PageRequest pageRequest, CourseDto courseDto);

        ResponseResult upload(MultipartFile uploadFile) throws FileNotFoundException, Exception;

        ResponseResult saveCourseBase(CourseBaseDto dto);

        ResponseResult updateCourseBase(CourseBaseDto dto);


        ResponseResult deleteById(Long courseId);

        ResponseResult commit(Long courseBaseId);

        ResponseResult approve(CourseAuditDto courseAuditDto);

        ResponseResult offline(Long courseId);
}
